/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package argtrust.trustnet;

import argtrust.measure.Measure;

/**
 *
 * @author Yuqing Tang
 */
public class IndirectTrust extends Measure {

    protected Measure mTrustMeasure;

    public IndirectTrust() {
    }

//    public static Measure getOpMeasure(Measure measure) {
//        if (measure instanceof IndirectTrust) {
//            return getOpMeasure(((IndirectTrust) measure).getOpMeasure());
//        } else {
//            return measure;
//        }
//    }

    public IndirectTrust(Measure measure) {
        mTrustMeasure = measure.getOpMeasure();
    }



    @Override
    public Measure getOpMeasure() {
        return mTrustMeasure.getOpMeasure();
    }

    public void setMeasure(Measure measure) {
        mTrustMeasure = measure;
    }

    @Override
    public String toString() {
        return mTrustMeasure.toString();
    }
}
